package model.didactic;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Kostika Gorica
 * User: kostika
 * Date: 12/28/12
 * Time: 5:03 PM
 */
public class Activity {
    private int id;
    private int activityType;
    private String activityName;
    private String description;
    private Date validFromDate;
    private Date expireDate;
    private boolean enabled;

    public Activity(){
        this(0,0,"","",null,null,true);
    }

    public Activity(int id, int activityType, String activityName, String description, Date validFromDate, Date expireDate, boolean enabled) {
        this.setId(id);
        this.setActivityType(activityType);
        this.setActivityName(activityName);
        this.setDescription(description);
        this.setValidFromDate(validFromDate);
        this.setExpireDate(expireDate);
        this.setEnabled(enabled);
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getActivityType() {
        return activityType;
    }

    public void setActivityType(int activityType) {
        this.activityType = activityType;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getValidFromDate() {
        return validFromDate;
    }

    public void setValidFromDate(Date validFromDate) {
        this.validFromDate = validFromDate;
    }

    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    @Override
    public String toString(){
        return "Type: "+activityType+" Name: " +activityName;
    }
}
